{%extends "base.njk"%}

{%block section%}
    <div class="row">
        {%for albumName in albumArr%}
            {{item(albumName)}}
        {%endfor%}
    </div>    
{%endblock%}

{%macro item(name)%}   
    {#{%for imgName in imgArr%}#}
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail">
                
                <img src="/img/{{name}}.jpg" alt="...">
            
                <div class="caption">
                    <h3>{{name}}</h3>
                    <p><a href="{{name}}" class="btn btn-default" role="button">进入</a></p>
                </div>
            </div>
        </div>
    {#{%endfor%}#}
{%endmacro%}

{#{%macro title(titleName)%}   
    {%for imgName in imgArr%}
        <img src="{{imgName}}" alt="...">
    {%endfor%}
{%endmacro%}#}